package com.it.Demo2;

public class Computer {
    public String name="电脑";
    public int score=0;
    public int showF() {
        int num=(int)(Math.random()*10)%3+1;
        if(num==1){
            System.out.println("("+name+"):出->"+"石头");
        }else if (num==2){
            System.out.println("("+name+"):出->"+"剪刀");
        }else {
            System.out.println("("+name+"):出->"+"布");
        }
        return num;
    }
}
